<template>
  <div class="content" key="id">
    <h1>{{noticeInfo.noticeTitle}}<span>{{ noticeInfo.createTime }}</span></h1>
    <p v-html="noticeInfo.noticeContent"></p>
  </div>
</template>

<script>
import home from '@/api/xcgg/home';
export default {
  name: "notice-detail",
  data() {
    return {
      notice_id: this.$route.query.id,
      noticeInfo: {}
    };
  },
  methods: {
    getDetailById(id) {
      home.getDetailById(id)
          .then(response => {
            this.noticeInfo = response.data.data;
            console.log(response.data.data)
          });
    },
  },
  mounted: function () {
    this.getDetailById(this.notice_id);
  },
}
</script>

<style scoped>
/*@import "../assets/sfj/css/base.css";*/
/*@import "../assets/sfj/css/other.css";*/
</style>